/**
 * Exception class for the UOM
 * 
 * @author remo.lemma@lu.unisi.ch and patrick.zulian@lu.unisi.ch
 */

package ch.unisi.inf.projects.java.uom.exceptions;

public class UOMException extends Exception {
		
	/** Error code */
	private final int code;
	
	/** Serial version UID */
	private static final long serialVersionUID = 1L;
		
	/**
	 * Constructor
	 * @param code the code for the Exception
	 * @param message the error message
	 */
	public UOMException (final int code, final String message)
	{
		super(message);
		this.code = code;
	}
	
	/**
	 * Returns the code of the Exception
	 * @return the code
	 */
	public int getCode()
	{
		return this.code;
	}
}
